package com.xhu.service.impl;

import com.xhu.bean.pojo.SealControl;
import com.xhu.dao.SealControlDao;
import com.xhu.dao.impl.SealControlDaoImpl;
import com.xhu.service.SealControlService;

import java.sql.Date;
import java.util.List;

public class SealControlServiceImpl implements SealControlService {
    SealControlDao sealControlDao = new SealControlDaoImpl();

    @Override
    public boolean addService(SealControl sealControl) {
        return sealControlDao.add(sealControl);
    }

    @Override
    public boolean updateService(SealControl sealControl) {
        return sealControlDao.update(sealControl);
    }

    @Override
    public boolean deleteService(SealControl sealControl) {
        return sealControlDao.delete(sealControl);
    }

    @Override
    public List<SealControl> getAllService() {
        return sealControlDao.getAll();
    }

    @Override
    public List<SealControl> getSomeService(Date date) {
        return sealControlDao.getSome(date);
    }
}

